package com.tanhua.dubbo.api;

import com.tanhua.model.domain.Options;
import com.tanhua.model.domain.Result;
import com.tanhua.model.mongo.TestSoul;
import com.tanhua.model.vo.OptionsVo;
import com.tanhua.model.vo.QuestionnaireVo;
import com.tanhua.model.vo.SoulQuestionsVo;

import java.util.List;
import java.util.Map;

public interface TestApi {
    //List<OptionsVo> optionsList(List<Long> questionIds);

    List<OptionsVo> optionsList(Long questionId);

    List<SoulQuestionsVo> soulQuestionsList(Long questionnaireId);

    List<QuestionnaireVo> questionnaireList(List<Long> questionnaireIds, Map<Object, TestSoul> testSoulMap);

    List<Options> findAllOption(List<Long> optionIdList);

    Result getResultByScore(Integer totalScore,Long questionnaireId);

    Long getQuestionnaireId(Long questionId);

    Result findByResultId(Long resultId);
}
